package edu.guet.Factory.SimpleFactory;

/**
 * Created by Caesar on 2017/5/6.
 */
public class PizzaStroe {
    private SimplePizzaFactory pizzaFactory;

    public PizzaStroe(){
        pizzaFactory = new SimplePizzaFactory();
    }
    public Pizza orderPizza(String type) {
        Pizza pizza = pizzaFactory.creatPizza(type);
        pizza.prepare();
        pizza.bake();
        pizza.cut();
        pizza.box();
        return pizza;
    }
}
